<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\portal\validate;

use think\Validate;

class AdminActivityValidate extends Validate
{
    protected $rule = [
        'title' => 'require',
        'server_content' => 'require',
        'activity_type' => 'require',
        'place' => 'require',
        'start_time' => 'require',
        'end_time' => 'require',
        'location' => 'require',
        'content' => 'require',
    ];
    protected $message = [
        'title.require' => '请输入活动标题！',
        'server_content.require' => '请选择服务内容！',
        'activity_type.require' => '请选择活动类型！',
        'place.require' => '请填写活动地点！',
        'location.require' => '请选择活动坐标！',
        'content.require' => '请填写活动内容！',
        'start_time'=>'请选择开始时间',
        'end_time' =>'请选择结束时间',
    ];

    protected $scene = [
//        'add'  => ['user_login,user_pass,user_email'],
//        'edit' => ['user_login,user_email'],
    ];
}